<template>
    <div class="order">
        <div class="order__title">
            <h2>我的订单</h2>
            <div class="order__title__view">
                <a href="">查看全部订单 ></a>
            </div>
        </div>
        <div class="order__main">
            <van-grid>
                <van-grid-item>
                    <van-badge :content="5">
                    <div class="child">
                        <van-icon name="orders-o" size="28px" />
                        <p>全部</p>
                    </div>
                    </van-badge>
                </van-grid-item>  
                <van-grid-item>
                    <van-badge :content="5">
                    <div class="child">
                        <van-icon name="orders-o" size="28px" />
                        <p>待支付</p>
                    </div>
                    </van-badge>
                </van-grid-item>
                <van-grid-item>
                    <van-badge :content="5">
                    <div class="child">
                        <van-icon name="orders-o" size="28px" />
                        <p>待收货</p>
                    </div>
                    </van-badge>
                </van-grid-item>
                <van-grid-item>
                    <van-badge :content="5">
                    <div class="child">
                        <van-icon name="orders-o" size="28px" />
                        <p>待评价</p>
                    </div>
                    </van-badge>
                </van-grid-item>
        </van-grid>
        </div>
    </div>
</template>

<script lang="ts" setup>

</script>


<style lang="scss" scoped>
.order{
    background-color: #fff;
    margin: 20px;
    &__title{
        display: flex;
        position: relative;
        &__view{
            position: absolute;
            right: 0;
            top: 20px;

        }
    }
    &__main{
        display: flex;
        align-items: center;
        justify-content: space-evenly;
    }
}


.child {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    flex-direction: column;
    font-size: 12px;
  }
  a {
  color: #ccc;
  text-decoration: none;
}

</style>

